have a good head on one's shoulders
see:
good head on one's shoulders